﻿using System;
using System.Collections.Generic;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using SmlEngine.UI.Screens;

namespace SmlEngine.UI.Controls
{
    public sealed class Image : Control
    {
        public Texture2D Texture { get; set; }

        public Image(Screen screen, Texture2D texture)
            : base(screen)
        {
            Texture = texture;
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch, Point offset)
        {
            spriteBatch.Draw(Texture, Bounds, Color.White);

            base.Draw(gameTime, spriteBatch, offset);
        }
    }
}
